package com.dragon.antifraud.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 联系人电话记录临时表
 * @author 吴俊峰
 */
public class AcLinkmanMobileRecordTemp implements Serializable{
	private static final long serialVersionUID = 530971582437037841L;

	private Integer id;

    private String loanId;

    private String custIdCard;

    private String name;

    private String mobile;

    /**
     * 类型（1通讯录联系人，2通话记录联系人，3运营商记录联系人）
     */
    private String type;

    private String createdBy;

    private Date createdDate;

    private String updatedBy;

    private Date updatedDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId == null ? null : loanId.trim();
    }

    public String getCustIdCard() {
        return custIdCard;
    }

    public void setCustIdCard(String custIdCard) {
        this.custIdCard = custIdCard == null ? null : custIdCard.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy == null ? null : updatedBy.trim();
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }
    
    @Override  
    public boolean equals(Object obj) {  
        if (obj instanceof AcLinkmanMobileRecordTemp) {  
        	AcLinkmanMobileRecordTemp p = (AcLinkmanMobileRecordTemp) obj;  
            return this.mobile.equals(p.mobile) && this.type.equals(p.type);  
        } else {  
            return false;  
        }  
    }  
	
	@Override
    public int hashCode() {
        int result = mobile.hashCode();
        result = 31 * result;
        return result;
    }
}